﻿namespace Community.CsharpSqlite.Entity
{
    /*
    ** A WhereCost object records a lookup strategy and the estimated
    ** cost of pursuing that strategy.
    */

    public class WhereCost
    {
        public double nRow; /* Estimated number of output rows */
        public WherePlan plan = new WherePlan(); /* The lookup strategy */
        public double rCost; /* Overall cost of pursuing this search strategy */
        public ulong used; /* ulong of cursors used by this plan */

        public void Clear()
        {
            plan.Clear();
            rCost = 0;
            nRow = 0;
            used = 0;
        }
    };
}